import sys
from cx_Freeze import setup, Executable

build_exe_options = {
    "packages": ["tkinter","ttkbootstrap"],  # 依赖包
    "include_files": [r'template_fw.xlsx',
                      ]  # 生成文件
}

base = None
if sys.platform == "win32":
    base = "Win32GUI"  # 使用此选项来隐藏控制台窗口

setup(
    name='local_upgrade',
    version='1.0',
    description='upgrade',
    options={"build_exe": build_exe_options},
    executables=[Executable(r'main.py', base=base)]
)
